package com.house.enums;

public enum ResultEnum {
    SUCCESS(1000,"操作成功"),
    ERROR(1001,"操作失败"),
    NOLOGIN(1002,"用户未登录"),
    ARGS_ERROR(1003,"参数异常"),
    ACCOUNT_NOT_EXIST(1004,"账号不存在"),
    PWD_ERROR(1005,"密码错误"),
    ACCOUNT_ERROR(1006,"账号未审核,或审核未通过"),
    ACCOUNT_EXIST(1007,"账号已存在"),
    INVALID_TOKEN(1008,"无效的token"),
    SHORT_MESSAGE_ERROR(1009,"短信验证码错误"),
    REFUND_ERROR(1010,"退款失败"),
    REFUND_SUCCESS(1011,"退款成功"),
    TOO_MANY_REQUEST(1012,"请求过多"),
    FALLBACK(1013,"触发降级");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
